import { GetCollectionByUserId } from "@/api/map/collect";
import store from "@/store";

export const getCollectionList = (userId: string) => {
  GetCollectionByUserId(userId)
    .then((res: any) => {
      if (res.status == 200) {
        //更新收藏的数据
        store.dispatch("layers/CHANGE_COLLECT_LAYER", res.data);
      }
    })
    .catch((err) => {
      console.log(err);
    });
};
